package com.tianruan.psychological.common.constant;

/**
 * @author liuxin
 * @date 2019/11/10
 * @PS 全局异常枚举类
 */
public enum GlobalExceptionEnum {

    ERROR(1000, "我是异常弹出框"),

    ERROP_USER_PASSWORD(1000, "用户名不存在或者密码错误"),

    ERROP_PASSWORD(1001, "密码错误"),

    WARNING(2000, "我是警告弹出框"),

    LOGOUT_SUCCESS(200, "退出成功"),

    MODIFY_PASSWORD_SUCCESS(200, "修改密码成功"),

    PERMISSION_DENIED(403, "没有权限");

    private Integer code;

    private String message;

    GlobalExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
